﻿using System;
using System.Collections.Generic;
using Telerik.Web;
using Telerik.Sitefinity.Social.Resources;
using Telerik.Sitefinity.Social.UI.Frontend;

namespace Telerik.Sitefinity.Social
{
    /// <summary>
    /// The module class for the social network platform module
    /// </summary>
    public class SocialModule : WebModule
    {
        /// <summary>
        /// Name of the module
        /// </summary>
        /// <value></value>
        public override string Name
        {
            get { return Messages.Module_Name; }
        }

        /// <summary>
        /// Title of the module
        /// </summary>
        /// <value></value>
        public override string Title
        {
            get { return Messages.Module_Title; }
        }

        /// <summary>
        /// Module description
        /// </summary>
        /// <value></value>
        public override string Description
        {
            get { return Messages.Module_Description; }
        }

        /// <summary>
        /// Gets information for the controls which would be showed in the toolbox when
        /// editing a page.
        /// </summary>
        public override IList<IToolboxItem> Controls
        {
            get
            {
                List<IToolboxItem> toolboxItems = new List<IToolboxItem>();
                toolboxItems.Add(new RegistrationToolboxItem());
                toolboxItems.Add(new LoginViewToolboxItem());
                return toolboxItems;
            }
        }
    }
}